<?php
if (!defined('WEB_ROOT')) {
	exit;
}

// make sure a mannc exists
if (isset($_GET['mannc']) && $_GET['mannc'] !='') {
	$mannc = $_GET['mannc'];
} else {
	header('Location:index.php');
}	
$sql = "SELECT *
		FROM nhomnc
		WHERE mannc = '$mannc'";
$result = dbQuery($sql);
$row = dbFetchAssoc($result);
extract($row);
?>
<p>&nbsp;</p>
<form action="processGroup.php?action=modify&mannc=<?php echo $mannc; ?>" method="post" enctype="multipart/form-data" name="frmGroup" id="frmGroup">
  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable">
  <tr> 
   <td width="150" class="label">Mã nhóm nghiên cứu</td>
   <td class="content"> <input name="txtMannc" type="text" class="box"  id="txtMannc" readonly="true" style="background-color:#DADADA" value="<?php echo $mannc; ?>" size="30" maxlength="50"></td>
  </tr>
  <tr> 
   <td width="150" class="label">Tên nhóm nghiên cứu</td>
   <td class="content"> <input name="txtTennnc" type = "text" class="box" id="txtTennnc" value="<?php echo $tennnc; ?>" size="50" maxlength="50">
  </tr>
  <tr> 
   <td width="150" class="label">Ngày thành lập</td>
   <td class="content"> <input name="txtNgaythanhlap" type="text" id="txtNgaythanhlap" value="<?php echo $ngaythanhlap; ?>" class="box"> </td>
  </tr>
   <tr> 
   <td width="150" class="label">Đơn vị</td>
   <td class="content"> <input name="txtDonvi" type="text" id="txtDonvi" value="<?php echo $madv; ?>" class="box"> </td>
   
  </tr>
 </table>

 <p align="center"> 
  <input name="btnModify" type="button" id="btnModify" value="Lưu thay đổi" onClick="checkGroupForm();" class="box">
  &nbsp;&nbsp;<input name="btnCancel" type="button" id="btnCancel" value="Hủy" onClick="window.location.href='index.php';" class="box">
 </p>

</form>
